#ifndef INTERFACE_H
#define INTERFACE_H
#include <QWidget>
#include"adresse_mail.h"

namespace Ui {
    class Interface;
}

class Interface : public QWidget
{
    Q_OBJECT

public:
    explicit Interface(QWidget *parent = 0);
    ~Interface();
    static Adresse_Mail * stringToEmail(const QString & str);

private slots:
   void on_envoyer_clicked();

private:
    Ui::Interface *ui;

    void errorMessage(const QString & message);
};

#endif // INTERFACE_H
